﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
using BackupAssurance.Library.Interfaces;



namespace BackupAssurance.Library.ModelsDB
{
    public class pcPlugInValue : IVersionTracking, IpcIdentity
    {
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public long Id { get; set; }

        //IpcIdentity
        [Required]
        [MaxLength(75)]
        public string name { get; set; }
        [MaxLength(1000)]
        public string description { get; set; }
        public string PlugInText { get; set; }
        public string TypePlugIn { get; set; }
        public int ExecuteOrder { get; set; }
        public int Runversion { get; set; }
        //FK to the JobAction table
        public long pcJobActionId { get; set; }
        public int DemoMode { get; set; }
        public int SendEmailWithResults { get; set; }
        public string TypeOnFailure  { get; set; } 

        //IVersionTracking
        public DateTime DateCreated { get; set; }
        public DateTime LastUpdated { get; set; }
        [Timestamp]
        public byte[] Version { get; set; }
    }
}
